#import "LuminousOracleController.h"
        
#import "LuminousOracleModel.h"
#import "LuminousOracleCell.h"
#import "Masonry.h"

@interface LuminousOracleController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *hazeCollectionView;
@property (nonatomic, strong) NSMutableArray *mergeNavigateGraciousArray;

@end

@implementation LuminousOracleController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self breezeInitui];
	[self whimsyEuphoriarequestData];
}


- (void)breezeInitui {
    UICollectionViewFlowLayout *eclipse = [[UICollectionViewFlowLayout alloc] init];
    eclipse.minimumLineSpacing = 10;
    eclipse.minimumInteritemSpacing = 10;
    eclipse.itemSize = CGSizeMake(100, 100);
    eclipse.scrollDirection = UICollectionViewScrollDirectionVertical;
    
    self.hazeCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:eclipse];
    self.hazeCollectionView.backgroundColor = UIColor.clearColor;
    self.hazeCollectionView.delegate = self;
    self.hazeCollectionView.dataSource = self;
    self.hazeCollectionView.showsHorizontalScrollIndicator = NO;
    self.hazeCollectionView.showsVerticalScrollIndicator = NO;
    [self.hazeCollectionView registerClass:[LuminousOracleCell class] forCellWithReuseIdentifier:NSStringFromClass([LuminousOracleCell class])];
    
    [self.view addSubview:self.hazeCollectionView];
    [self.hazeCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
}

//: 懒加载数据模型数组
- (NSMutableArray *)mergeNavigateGraciousArray {
	if (!_mergeNavigateGraciousArray) {
		_mergeNavigateGraciousArray = [NSMutableArray array];
	}
	return _mergeNavigateGraciousArray;
}

//: 获取数据模型
- (void)whimsyEuphoriarequestData {
	
}

#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.mergeNavigateGraciousArray.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    LuminousOracleCell *motion = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([LuminousOracleCell class]) forIndexPath:indexPath];
    return motion;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
